from aiogram.types import (
    InlineKeyboardButton,
    InlineKeyboardMarkup,
    KeyboardButton,
    ReplyKeyboardMarkup,
)

places_of_birth = [
    "AGUASCALIENTES",
    "BAJA CALIFORNIA",
    "CAMPECHE",
    "CHIAPAS",
    "CHIHUAHUA",
    "COAHUILA",
    "COLIMA",
    "DISTRITO FEDERAL",
    "DURANGO",
    "GUANAJUATO",
    "GUERRERO",
    "HIDALGO",
    "JALISCO",
    "MEXICO",
    "MORELOS",
    "MICHOACAN",
    "NAYARIT",
    "NUEVO LEON",
    "OAXACA",
    "PUEBLA",
    "QUERETARO",
    "QUINTANA ROO",
    "SAN LUIS POTOSI",
    "SINALOA",
    "SONORA",
    "TABASCO",
    "TAMAULIPAS",
    "TLAXCALA",
    "VERACRUZ",
    "YUCATAN",
    "ZACATECAS",
]

mx_back = KeyboardButton("Назад ◀️")

kb_mx_back = ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
kb_mx_back.add(mx_back)

kb_mx_pass_name = ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
kb_mx_pass_name.add(mx_back)

kb_mx_pass_last_name = ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
kb_mx_pass_last_name.add(mx_back)

kb_mx_pass_date_of_birth = ReplyKeyboardMarkup(
    resize_keyboard=True, one_time_keyboard=True
)
kb_mx_pass_date_of_birth.add(mx_back)

kb_mx_pass_place_of_birth = ReplyKeyboardMarkup(
    resize_keyboard=True, one_time_keyboard=True
)
for i in places_of_birth:
    kb_mx_pass_place_of_birth.add(KeyboardButton(i))
kb_mx_pass_place_of_birth.add(mx_back)

kb_mx_pass_sex = ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
mx_male = KeyboardButton("Мужской 🙎🏻‍♂️")
mx_female = KeyboardButton("Женский 🙍🏻‍♀️")
kb_mx_pass_sex.add(mx_male, mx_female, mx_back)

kb_mx_pass_issue_date = ReplyKeyboardMarkup(
    resize_keyboard=True, one_time_keyboard=True
)
kb_mx_pass_issue_date.add(mx_back)

kb_mx_pass_number = ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
generate_mx_pass_number = KeyboardButton("Сгенерировать")
kb_mx_pass_number.add(generate_mx_pass_number).add(mx_back)

kb_mx_pass_lamination_number = ReplyKeyboardMarkup(
    resize_keyboard=True, one_time_keyboard=True
)
generate_mx_pass_lamination_number = KeyboardButton("Сгенерировать")
kb_mx_pass_lamination_number.add(generate_mx_pass_lamination_number).add(mx_back)

kb_mx_pass_size = ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
mx_a4 = KeyboardButton("📃 На листе А4")
mx_doc = KeyboardButton("🪪 В размер документа")
mx_bg = KeyboardButton("🖼 На фоне")
kb_mx_pass_size.add(mx_a4, mx_doc, mx_bg, mx_back)

mx_pay = InlineKeyboardButton(text="Получить", callback_data="mx_pay_pass")
mx_change = InlineKeyboardButton(text="Изменить", callback_data="mx_change_pass")
mx_exit = InlineKeyboardButton(text="Выйти", callback_data="mx_exit_pass")
kb_mx_pass_finish = InlineKeyboardMarkup(row_width=1)
kb_mx_pass_finish.add(mx_pay, mx_change, mx_exit)
